package top.loonglove.newindexserver.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.loonglove.common.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.util.Calendar;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/7/26 3:48
 * 用户认证记录
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("用户登录记录")
@Table(name = "account_record")
public class AccountRecord extends BaseEntity {
    @Column(name = "account_id",nullable = false)
    private Long accountId;
    @Column(name = "login_in_time",nullable = false)
    private Timestamp loginInTime;
    @Column(name = "login_out_time",nullable = false)
    private Timestamp loginOutTime;
    @Column(name = "login_client",nullable = false)
    private String loginClient;
    @Column(name = "login_ip",nullable = false)
    private String loginIp;
    @Column(nullable = false)
    private String token;
    @Column(name = "refresh_token",nullable = false)
    private String refreshToken;
}
